tone_synth object

This method writes the current data to a wave file.

bool write_wave_file(string filename)

Parameters:
filename
The filename to write to.

Return value:
true on success, false on failure.

Remarks:
The filename can either be an absolute or relative path. The file may take a while to be created, depending on the complexity of the piece.

Example:
// Write a B major chord to a wave file.

tone_synth synth;

void main()
{
synth.note("B3, D#4, Gb4", 4);
synth.write_wave_file("wave.wav");
}